<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="bean.ownerhousedata"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'ownerhouse.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">h2{text-align: center;}tr{border:1px solid;}
td{width:500px;height:100px;font-family:黑体;border:1px solid;text-align:right;font-size:25px;}
div{margin-left:auto;margin-right:auto;width:1000px;height:500px;}
button{height:100px;font-size:30px;font-family:黑体;margin-top:20px;}
table{border:1px solid;margin-left:auto;margin-right:auto;}
</style>
  </head>
  
  <body>
  <h2>您的房屋信息:</h2>
<% 
List oh =(List)request.getAttribute("oh");
int num = Integer.parseInt(request.getParameter("num"));
if(num>=oh.size())num=0;
ownerhousedata o =(ownerhousedata)oh.get(num);
String louhao=o.getLouhao();
String fanghao=o.getFanghao();
String mianji=o.getMianji();
String louceng=o.getLouceng();
String guanliyuan=o.getList().toString();
String feiyong=o.getFeiyong();
String fuzeren=o.getList().toString();
String yaoqiu=o.getYaoqiu();
%>
  <div>
  <table>
  <tr><td>楼号:</td><td><%=louhao %></td><td>房号:</td><td><%=fanghao %></td></tr>
  <tr><td>面积:</td><td><%=mianji %></td><td>楼层:</td><td><%=louceng%></td></tr>
  <tr><td>管理员:</td><td><%=guanliyuan %></td><td>物业费用:</td><td><%=feiyong %></td></tr>
  <tr><td>反馈负责人:</td><td><%=fuzeren %></td><td>反馈内容:</td><td><%=yaoqiu %></td></tr>
  </table>
  <a href="ownerhouse?num=<%=num %>&id=<%=request.getParameter("id") %>&userpsw=<%=request.getParameter("userpsw") %>"><h3>下一页</h3></a><br/>
  <a href="ownerlogin?id=<%=request.getParameter("id") %>&userpsw=<%=request.getParameter("userpsw") %>"><h3>个人主页</h3></a>
  <a href="fankui.jsp?userid=<%=request.getParameter("id")%>&louhao=<%=louhao %>&fanghao=<%=fanghao %>"><h3>提交反馈</h3></a>
  </div>
  </body>
</html>
